package com.bbzn.user.client.service;

import java.util.List;

import com.bbzn.user.client.dataobject.RolePermission;

public interface RolePermissionService{


    int deleteByPrimaryKey(Integer roleId,Long permId);

    int deleteByRoleId(Integer roleId);

    int insert(RolePermission record);

    int insertOrUpdate(RolePermission record);

    int insertOrUpdateSelective(RolePermission record);

    int insertSelective(RolePermission record);

    List<RolePermission> findByAll(RolePermission rolePermission);

    int updateBatch(List<RolePermission> list);

    int updateBatchSelective(List<RolePermission> list);

    int batchInsert(List<RolePermission> list);

     List<RolePermission>  getRolePermissionByPerId( List<Long> ids );

    List<Long> findPermissionIdByRoleId(int roleId);

}
